package com.wenjie.original.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import com.wenjie.original.entity.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Table("sys_admin_role")
@ApiModel("用户和角色关联 ")
public class SysAdminRole extends BaseEntity {

    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private Long sysAdminRoleId;

    @ApiModelProperty("用户ID")
    private Long sysAdminId;

    @ApiModelProperty("角色ID")
    private Long sysRoleId;

}
